package com.dronff.gvm.interfaces;

import com.dronff.gvm.memorymanager.Memory;
import com.dronff.gvm.memorymanager.MiniMemory;
import com.dronff.gvm.memorymanager.impl.MiniMemoryImpl;

/**
 * @author: tyf
 * @date: 2022/9/9 10:02
 * @description: todo(
 */
public interface Allocatable{
    MiniMemoryImpl alloc(int size) throws OutOfMemoryError, IllegalAccessException;
    Memory allocRegion(int size) throws OutOfMemoryError, IllegalAccessException;
}
